﻿using EntityMode;
using Microsoft.AspNetCore.Http;
using Microsoft.AspNetCore.Mvc;

namespace PartyWorkSupervise.Controllers
{
    [Route("api/[controller]")]
    [ApiController]
    public class InterviewController : ControllerBase
    {
        private readonly PWSDbcontext db;
        public InterviewController(PWSDbcontext contet)
        {
            db = contet;
        }
        [HttpGet]
        public List<Interview> Get()
        {
            return db.interview.ToList();
        }
    }
}
